﻿using System;

namespace Gmantis.Controls.Chart
{
    [Flags]
    public enum MouseWheelDirection
    {
        None,
        X,
        Y,
        XY
    }

    public class TranslateAction : Action
    {
        // Fields
        private double _wheelFactor;

        // Methods
        public TranslateAction()
            : base(ActionType.Translate)
        {
            this._wheelFactor = 0.1;
        }

        // Properties
        public MouseWheelDirection MouseWheelDirection { get; set; }

        public double MouseWheelFactor
        {
            get
            {
                return this._wheelFactor;
            }
            set
            {
                this._wheelFactor = value;
            }
        }

        internal override bool SupportMouseWheel
        {
            get
            {
                return (this.MouseWheelDirection != MouseWheelDirection.None);
            }
        }
    }
}
